package com.source.springioc.domain;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by tan on 2017/6/23.
 */
@Component
public class Teacher {
	@Autowired
	private Student student;

	public Teacher() {
		System.out.println("teacher controct");
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}
}
